package com.example.flying_personnel_management_system.services;

import com.example.flying_personnel_management_system.dao.SysUserMapper;
import com.example.flying_personnel_management_system.pojo.SysUser;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.List;

@Service
public class YuServiceDaoImp implements YuServiceDao{

    @Autowired
    SysUserMapper sysUserMapper;

    //系统管理员用户管理查询信息
    @Override
    public List<HashMap<String,String>> selectAllYu() {
        return sysUserMapper.selectAllYu();
    }


    //系统管理员用户管理新增用户
    @Override
    public int insertYu(SysUser sysUser) {
        return sysUserMapper.insertYu(sysUser);
    }
}
